/*******************************************************************************
  * Copyright(c) 2023 Levetop Semiconductor Co.,Led. All rights reserved.
  * @file     gesture.h
  * @author   UartTFT Application Team
  * @version  V0.0.1
  * @date     2023-01-04
  * @brief    This file contains the functions prototypes for the UartTFT
  *           Application display firmware.
 ********************************************************************************/

#ifndef GESTURE_H_
#define GESTURE_H_

#include "type.h"
#include "module_select.h"

/***Gesture*/
typedef struct
{
	uint16_t Code; // Function code
	uint8_t len;   // lenght
	uint16_t page[4];
	uint16_t value[4];
} Gesture_Info;

extern Gesture_Info gGesture_Info;
extern uint8_t Gesture_press;		  // Gesture effective press/release
extern uint8_t Gesture_direction; // Gesture direction
extern uint8_t Gesture_flag;		  // Gesture function on/off

extern void Gesture_touch(void);





/****Slide screen****/
typedef struct
{
	uint16_t Code;
	uint8_t len;
	uint16_t page[2];
	uint16_t value[2];
	uint16_t ys;			// Sliding area
	uint16_t ye;
} Sld_sc_Info;
extern Sld_sc_Info gSld_sc_Info;
extern uint8_t Ges_sc_flag;
extern uint8_t gFirstTouch;
void slide_screen(void);
/*****************/


#endif /* GESTURE_H_ */
